﻿@model IEnumerable<ElectrosLTD.Models.ShoppingCartModel>

<table>
    <tr>
        <th>
            productId
        </th>
        <th>
            productName
        </th>
        <th>
            Image
        </th>
        <th>
            Stock
        </th>
        <th>
            Price
        </th>
        
        
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.productId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.productName)
        </td>
        <td>
            <img src="@Html.DisplayFor(modelItem => item.Image)" alt="" height = "100px" width = "100px" />
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Stock)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Price)
        </td>        
        
        <td>
            @Html.ActionLink("Add Comment and Rating", "RateComment", new { Controller = "Product", productID = item.productId}, null)|
            @Html.ActionLink("Report Fault", "FaultSubmit", new { Controller = "Fault", orderDetailsID = item.shoppingCartID}, null)
            
        </td>
    </tr>
}

</table>
